using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using WindowsLive.Writer.Api;

namespace WLWPlugins.FlickrPlugin
{
    [WriterPlugin
       ("B7773064-716D-4b52-9C7E-1EB2A929E530",
        "Flickr Integration",
        ImagePath = "Images.Flickr.gif",
        PublisherUrl = "http://paltman.com/",
        Description = "Integrates wtih Flickr show images can be uploaded and stored in a Flickr account.")]

    [InsertableContentSourceAttribute("Flickr Image")]
    public class Plugin : ContentSource
    { 
        public override DialogResult CreateContent(IWin32Window dialogOwner, ref string newContent)
        {
            // TODO: Register app with Flickr
            // TODO: Provide dialog to upload a new photo, or select an existing one 
            // TODO: Generate the HTML for the img tag to point to the Flickr hosted photo and set "newContent" to this value.
            return base.CreateContent(dialogOwner, ref newContent);
        }
    }
}
